package stat

import (
	v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
	"github.com/gin-gonic/gin"
)

type UserStatRouter struct{}

func (e *UserStatRouter) InitUserStatRouter(Router *gin.RouterGroup) {

	userStatApi := v1.ApiGroupApp.StatGroup.UserStatApi
	xkBbsCustomerRouterWithoutRecord := Router.Group("stat") //.Use(middleware.OperationRecord())
	{
		// 统计某年的用户注册量
		xkBbsCustomerRouterWithoutRecord.GET("user/reg", userStatApi.UserRegStat)
		// 统计某年的用户注册量--明细信息
		xkBbsCustomerRouterWithoutRecord.POST("user/detail", userStatApi.FindUserRegStatDetail)
	}

}
